Page({
  data: {
    info: {},
    proficientDirectionList: [
      {
        iconPath: "../../assets/images/relation.png",
        direct: "人际关系",
        text: "我一直记得 我一直记得 我一直记得 我一直记得 我一直记得",
      },
      {
        iconPath: "../../assets/images/relation.png",
        direct: "人际关系",
        text: "我一直记得 我一直记得 我一直记得 我一直记得 我一直记得",
      },
      {
        iconPath: "../../assets/images/relation.png",
        direct: "人际关系",
        text: "我一直记得 我一直记得 我一直记得 我一直记得 我一直记得",
      },
      {
        iconPath: "../../assets/images/relation.png",
        direct: "人际关系",
        text: "我一直记得 我一直记得 我一直记得 我一直记得 我一直记得",
      },
    ],
    activeTab: "1",
    loading: false,
  },
  async onLoad() {
    try {
      this.setData({
        loading: true,
      });
      const res = await getApp().request(
        {
          path: "/s/t/getTeacherById",
          method: "GET",
          data: {
            tid: "179132900338434048",
          },
        },
        false
      );
      this.setData({
        info: res,
        loading: false,
      });
    } finally {
    }
  },
  handleTabChange(event: any) {
    const tab = event.currentTarget.dataset.tab;
    console.log(tab, "2222");
    this.setData({
      activeTab: tab,
    });
  },
  handleReser() {
    wx.navigateTo({
      url: "/pages/reservation/index",
    });
  },
});
